package pe.gob.inei.fx.lib.component.styles.superPanel
{
	import mx.controls.Alert;
	import mx.styles.CSSStyleDeclaration;
	
	import pe.gob.inei.fx.images.Icon;

	public class CloseStyle extends CSSStyleDeclaration {
		
		private static var _instance:CloseStyle;
		
		public function CloseStyle(singleton:SingletonForce){
			setStyle("icon", Icon.superPanelIcons().closeUp);
			setStyle("upIcon", Icon.superPanelIcons().closeUp);
			setStyle("overIcon", Icon.superPanelIcons().closeOver);
			setStyle("downIcon", Icon.superPanelIcons().closeDown);
			setStyle("disabledSkin", Icon.superPanelIcons().clear);
			setStyle("selectedUpSkin", Icon.superPanelIcons().clear);
			setStyle("selectedOverSkin", Icon.superPanelIcons().clear);
			setStyle("selectedDownSkin", Icon.superPanelIcons().clear);
			setStyle("upSkin", Icon.superPanelIcons().clear);
			setStyle("overSkin", Icon.superPanelIcons().clear);
			setStyle("downSkin", Icon.superPanelIcons().clear);
		}
		
		public static function instance():CloseStyle {
			if(CloseStyle._instance == null)
				CloseStyle._instance = new CloseStyle(new SingletonForce());
			return CloseStyle._instance;
		}
	}
}

class SingletonForce {}